#ifndef ANIMATIONTEXTTEXTEDIT_H
#define ANIMATIONTEXTTEXTEDIT_H

#include <qtextedit.h>
#include <QWidget>

class AnimationTextTextEdit : public QTextEdit
{
    Q_OBJECT
public:
    explicit AnimationTextTextEdit(QWidget *parent = nullptr);

    QStringList textList() const;
    void setTextList(const QStringList &newTextList);

    QStringList generateAnimationTextList(QStringList newTextList);
    void showAnimationText();
signals:

private slots:
    void slotAniTimerout();

private:
    QTimer *m_aniTimer;
    QStringList m_textList;
    QStringList m_animationTextList;

    int m_currentIndex = 0;
};

#endif // ANIMATIONTEXTTEXTEDIT_H
